package com.dubito.chat.protocol.request;

import com.dubito.chat.protocol.Packet;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.dubito.chat.protocol.command.Command.MESSAGE_REQUEST;

/**
 * @author liliang
 * @date 2020/4/27.
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class MessageRequestPacket extends Packet {

    private String message;

    public MessageRequestPacket(String message) {
        this.message = message;
    }

    @Override
    public Byte getCommand() {
        return MESSAGE_REQUEST;
    }
}